// pages/order/details/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    carDetails:{
      status:1,
      handle:'上线年检',
      data:'交强险保单（副本）、行驶证（原件）、车船税完税证明',
      milage:54,
      returnTime:'06/06 09:22',
      plateNum:'晋A.45533',
      seatsNum:4,
      registeredTime:'2018-06-10 23:00',
      inspectionTime:'2020-06-20',
      illegal:'无违章',
      address:'山西省太原市小店区',
      site:'xx大街xx号',
      img:[
        'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1593784639068&di=6a8501e8fc16562fbf0a6530c6f32b4f&imgtype=0&src=http%3A%2F%2Fimage.bitautoimg.com%2Fappimage%2Fmedia%2F20171026%2Fw1024_h705_271364401420484bacfce5328781a9d5.jpeg',
        'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1593784639068&di=6a8501e8fc16562fbf0a6530c6f32b4f&imgtype=0&src=http%3A%2F%2Fimage.bitautoimg.com%2Fappimage%2Fmedia%2F20171026%2Fw1024_h705_271364401420484bacfce5328781a9d5.jpeg',
        'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1593784639068&di=6a8501e8fc16562fbf0a6530c6f32b4f&imgtype=0&src=http%3A%2F%2Fimage.bitautoimg.com%2Fappimage%2Fmedia%2F20171026%2Fw1024_h705_271364401420484bacfce5328781a9d5.jpeg'
      ]
    },
    master:{
      name:'张师傅',
      tel:'150****0000',
    },
    order:{
      time:'2020-06-20 10:25:22',
      num:'a11156564563'
    }
  },
// 拨打电话
telClick(){
  wx.makePhoneCall({
    phoneNumber: '03123688777',
  })
},
//图片点击事件
imgYu:function(event){
  var src = event.currentTarget.dataset.src;//获取data-src
  var imgList = event.currentTarget.dataset.list;//获取data-list
  //图片预览
  wx.previewImage({
    current: src, // 当前显示图片的http链接
    urls: imgList // 需要预览的图片http链接列表
  })
},
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})